
<div class="profiles view">
    <h2><kbd><?php echo __('Profile'); ?></kbd></h2>
    <hr/>
    <div class="container">

        <div class="row">

            <!-- Avatar
            ===========================-->
            <div class="col-md-12">
                <p>User id: <?php echo $this->Html->link($profile['Users']['id'], array('controller' => 'users', 'action' => 'view', $profile['Users']['id'])); ?> </p>

            </div>

            <div class="col-md-2">
                <?php
                echo $this->Html->image('/uploads/' . $profile['Profile']['avatar'], array('class' => 'thumbnail col-md-12'));
                ?>
                <?php if ($currentUser['id'] == $profile['Profile']['users_id']): ?>
                    <p>
                        <span class="glyphicon glyphicon-edit"></span>
                        <?php echo $this->Html->link('Change avatar', array('action' => 'avatar', $profile['Profile']['users_id'])); ?>
                    </p>
                <?php endif; ?>

                <p>Updated:</p>
                <p class="text-warning"><?php echo h($profile['Profile']['updated']); ?></p>
                <p><span class="glyphicon glyphicon-book"></span> <?php echo $this->Html->link('Update profile', array('controller' => 'profiles', 'action' => 'edit', $profile['Users']['id']), array('class' => 'text-success')); ?> </p>
            </div>
            <!--Infor User
            ==========================-->
            <div class="col-md-8">
                <p>Name: <span class="text-info"><?php echo h($profile['Profile']['name']); ?></span></p>
                <p>Gender: <span class="text-info"><?php echo h($profile['Profile']['gender']); ?></span></p>
                <p>Address: <span class="text-info"><?php echo h($profile['Profile']['address']); ?></span></p>
                <p>Phone number: <span class="text-info"><?php echo h($profile['Profile']['phone']); ?></span></p>
                <p>Birthday: <span class="text-info"><?php echo h($profile['Profile']['birthday']); ?></span></p>
            </div>

        </div>
    </div>         

</div>


